import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { SServerKey } from "./SServerKey";
type int = number;
//class SCrossMassacreAttackSussess
    
    export  class SCrossMassacreAttackSussess extends IMessageBase
    {
        constructor(arg1: Boolean=false)
        {
            
            super();if (arg1) 
            {
                MessageManager.instance().regist(this);
            }
            return;
        }

        public /* override */ getType(): int
        {
            return this._type;
        }

        public /* override */ clone(): IMessageBase
        {
            return new SCrossMassacreAttackSussess();
        }

        public /* override */ __write(arg1: SerializeStream): void
        {
            arg1.writeString(this.kingName);
            this.attackServerKey.__write(arg1);
            arg1.writeInt(this.proxyId);
            arg1.writeInt(this.serverId);
            arg1.writeInt(this.percent);
            arg1.writeInt(this.money);
            return;
        }

        public /* override */ __read(arg1: SerializeStream): void
        {
            this.kingName = arg1.readString();
            this.attackServerKey = new SServerKey();
            this.attackServerKey.__read(arg1);
            this.proxyId = arg1.readInt();
            this.serverId = arg1.readInt();
            this.percent = arg1.readInt();
            this.money = arg1.readInt();
            return;
        }

        public /* const */_type: int=871;

        public /* var */kingName: string;

        public /* var */attackServerKey: SServerKey;

        public /* var */proxyId: int;

        public /* var */serverId: int;

        public /* var */percent: int;

        public /* var */money: int;

        public static /* var */_regist: SCrossMassacreAttackSussess;
    }

            SCrossMassacreAttackSussess._regist = new SCrossMassacreAttackSussess(true);
        